package gui.view.adapter;

import gui.view.View;
import gui.view.ViewGroup;

public abstract class BaseAdapter {

	private View view;

	public abstract View getView(int position, View convertView, ViewGroup parent);

	public abstract long getItemId(int position);

	public abstract String getItem(int position);

	public abstract int getCount();

	public void addView(View view) {
		this.view = view;
	}

	public void notifyDataSetChanged() {
		view.getView().update(view.getView().getGraphics());
	}
}
